<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<script type="text/javascript">
	$(function() {
		validReg("addForm");
	});
</script>
<div id="page-content" class="page-content">

	<div class="page-content-wrapper">
		<div class="page-content">
			<!--content-->
			<div class="containerTop">
				<a href="javascript:;" class="a-back"
					onclick="menuUrl('realUser/view', 'realuser:page');"><span
					class="icon-back"></span></a> <span>添加真实用户</span>
			</div>

			<div class="panel charger">
				<form id="addForm" class="form-horizontal" role="form"
					onsubmit="return validateCallback(this, realuser.add);">
					<div class="form-group">
						<label class="col-sm-2 control-label"><span
							class="col_red">*</span>用户姓名：</label>
						<div class="col-sm-10 ">
							<div class="pr">
								<input type="text" name="userName" class="form-control"
									placeholder="请输入用户姓名" required data-bv-notempty  data-bv-regexp="true" data-bv-regexp-message="请输入1-16个中文、英文字母或数字" pattern="^[A-Za-z0-9\u4E00-\u9FA5 \,]{1,16}$">
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-2 control-label"><span
							class="col_red">*</span>登录名：</label>
						<div class="col-sm-10">
							<div class="pr">
								<input type="text" name="account" id="account" class="form-control"
									placeholder="请输入登录名" required data-bv-notempty>
							</div>
						</div>
					</div>
					
						<div class="form-group">
						<label class="col-sm-2 control-label"><span
							class="col_red">*</span>登录密码：</label>
						<div class="col-sm-10">
							<div class="pr">
								<input type="password" name="userPwd" id=userPwd class="form-control" placeholder="请输入登陆密码" required data-bv-notempty>
							</div>
						</div>
					</div>
					
					<div class="form-group">
						<label  class="col-sm-2 control-label"><span class="col_red">*</span>机构：</label>
						<div class="col-sm-10">
							<div class="pr">
							   <input type="text" disabled="disabled"  class="form-control" value = ${userModel.corpName }>
							   <input type="hidden" id="corpId" name="corpId" class="form-control" value = "${userModel.corpId }">
							</div>
						</div>
					</div>
										
								
					<div class="form-group">
						<label for="lastname" class="col-sm-2 control-label"><span
							class="col_red">*</span>用户类型：</label>
						<div class="col-sm-10">
							<select class="form-control input-sm"  id="userType" required data-bv-notempty name="userType">
								<option value="">选择用户类型</option>
								<option value="1">统一柜台查询用户</option>
								<option value="2">自助查询机用户</option>
							</select> 
						</div>
					</div>
					
					<div class="form-group">
						<label class="col-sm-2 control-label"><span
							class="col_red">*</span>办公电话：</label>
						<div class="col-sm-10">
							<div class="pr">
								<input type="text" name="officePhone" class="form-control"
									placeholder="请输入办公电话" required data-bv-notempty data-bv-phone="true" data-bv-phone-country="CN" data-bv-phone-message="例如：0769-12345678">
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">手机号码：</label>
						<div class="col-sm-10">
							<div class="pr">
								<input type="text" name="phone" class="form-control"
									placeholder="请输入手机号码" data-bv-phone="true"  data-bv-phone-country="CN" data-bv-phone-message="例如：13999999999">
							</div>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">备注：</label>
						<div class="col-sm-10">
							<!--<input type="text" class="form-control" placeholder="请输入办公电话">-->
							<textarea class="form-control" name="note" rows="3" data-bv-stringlength-max="500"  data-bv-stringlength="true"></textarea>
						</div>
					</div>
					<div class="text-center opareBtm">


						<button class="a-btn1" type="submit" >确定</button>
				
						<button type="button"
							onclick="menuUrl('realUser/view', 'realuser:page');"
							class="a-btn1 grey">返回</button>

					</div>

				</form>
			</div>


			<!--end content-->
			<div class="clearfix"></div>
		</div>
	</div>

	<div class="clearfix"></div>
</div>